package cn.wolfcode.mp.mapper;

import cn.wolfcode.mp.domain.Employee;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EmployeeMapper extends BaseMapper<Employee> {
    List<Employee> listByXmlSingle();
    List<Employee> listByXmlJoin();
    //注解形式  不建议使用
    @Select("select e.* from employee e")
    List<Employee> listByAnno();
}
